<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script th:inline="javascript">
// 	var username = [[${name}]];
	
</script>
</head>
<link rel="stylesheet" type="text/css" media="all" href="../../css/gtvg.css" data-th-href="@{/css/gtvg.css}" />
	

<body>
	<form action="/login" method="post">
		<input type="text" name="userName" data-th-value="${name}"><br>
<!-- 		<p th:text="${home.welcome}">Welcome to our grocery store!</p> -->

		<input type="submit" value="登录"> 
		<a href="" th:href="@{/order/hello001 (orderId=${name})}">你好！</a>

	</form>
	
<!-- $ {x}将返回存储在Thymeleaf上下⽂中的变量x或作为请求属性。 -->
<!-- $ {param.x}将返回⼀个名为x的请求参数（可能是多值的）。 -->
<!-- $ {session.x}将返回⼀个名为x的会话属性。 -->
<!-- $ {application.x}将返回⼀个名为x的servlet上下⽂属性。 -->

<!-- <p> -->
Today is: <span th:text="${#calendars.format(today,'yyyy-MM-dd HH:mm:ss')}">13 May 2011</span>

<div th:if="${flag}==false">
	<span>ddd</span>
</div>
等同于：
<div th:if="${flag==false}">
	<span>ddd</span>
</div>

<span th:class="${flag}">th:class</span>

<!-- 	<div th:object="${session.user}"> -->
<!-- 		<p> -->
<!-- 			Name: <span th:text="*{firstName}">Sebastian</span> -->
<!-- 		</p> -->
<!-- 		<p> -->
<!-- 			Surname: <span th:text="*{lastName}">Pepper</span>. -->
<!-- 		</p> -->
<!-- 		<p> -->
<!-- 			Nationality: <span th:text="*{nationality}">Saturn</span>. -->
<!-- 		</p> -->

<!-- 	</div> -->
<!-- 	这完全等同于： -->
<!-- 	<div> -->
<!-- 		<p> -->
<!-- 			Name: <span th:text="${session.user.firstName}">Sebastian</span>. -->
<!-- 		</p> -->
<!-- 		<p> -->
<!-- 			Surname: <span th:text="${session.user.lastName}">Pepper</span>. -->
<!-- 		</p> -->
<!-- 		<p> -->
<!-- 			Nationality: <span th:text="${session.user.nationality}">Saturn</span>. -->
<!-- 		</p> -->
<!-- 	</div> -->

<div th:remove="all">删除DIV</div>

<div th:text="${session.sessionName}" th:value="${user}==null?${user.id}">session获取</div>

<div  th:value="${user}==null?${user.id}"></div>

<div th:replace="footer :: #f"></div>



</body>
</html>